package com.example.module_hp_white_noise.viewModel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class SleepFocusViewModel extends ViewModel {
    //状态，1开始前，2开始后，3暂停
    private MutableLiveData<Integer> currentType;
    public MutableLiveData<Integer> getCurrentType() {
        if(currentType==null){
            currentType=new MutableLiveData<>();
            currentType.setValue(0);
        }
        return currentType;
    }
    public void setCurrentType(int val){
        currentType.setValue(val);
    }
}
